package win.ganbo.easyframwork.domain;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 系统日志
 * @author ganbo
 * 2016年7月1日 下午4:18:14
 */

@Entity
@Table(name="sys_log")
public class Log extends BaseEntity{
	private static final long serialVersionUID = 1L;
	
	private Long userId;	 		//操作用户id
	private String username; 		//操作用户名
	private String methods;	 		//访问方法
	private String requestIp;		//访问ip
	private Long responseTime;		//操作系统响应时间
	private String description;		//日志描述
	private Integer logTyep = 1;	//日志类型(1:是普通日志,2:异常日志)
	private String exceptionMsg;	//异常消息(这里暂时存储异常的类型)
	private String args;			//传递参数
	
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getMethods() {
		return methods;
	}
	public void setMethods(String methods) {
		this.methods = methods;
	}
	public String getRequestIp() {
		return requestIp;
	}
	public void setRequestIp(String requestIp) {
		this.requestIp = requestIp;
	}
	public Long getResponseTime() {
		return responseTime;
	}
	public void setResponseTime(Long responseTime) {
		this.responseTime = responseTime;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getExceptionMsg() {
		return exceptionMsg;
	}
	public void setExceptionMsg(String exceptionMsg) {
		this.exceptionMsg = exceptionMsg;
	}
	public String getArgs() {
		return args;
	}
	public void setArgs(String args) {
		this.args = args;
	}
	public Integer getLogTyep() {
		return logTyep;
	}
	public void setLogTyep(Integer logTyep) {
		this.logTyep = logTyep;
	}
	
	
}
